<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .nav {
            height: 30px;
            background-color: #E6E7E2;
        }
        
        .item {
            float: left;
            line-height: 30px;
            padding: 0 34px;
        }
        
        .item:hover {
            background-color: #2E2C2C;
            color: white;
        }
    </style>
</head>

<body>
    <div class="nav">
        <div class="item">html</div>
        <div class="item">browser</div>
        <div class="item">server</div>
        <div class="item">programming</div>
        <div class="item">xml</div>
    </div>
</body>

</html>